package team.dmh.wx.util;


import java.util.HashMap;

/**
 * 
 * @author jeff he
 *
 */
@SuppressWarnings("serial")
public class Result extends HashMap<String, Object> {

	public Result() {

	}

	public Result success() {
		this.put("success", true);
		return this;
	}

	public Result fail() {
		this.put("success", false);
		return this;
	}

	public Result info(String info) {
		this.put("info", info);
		return this;
	}

	public Result msg(String msg) {
		this.put("message", msg);
		return this;
	}

	public Result data(Object obj) {
		this.put("data", obj);
		return this;
	}

}
